<?php

//////////////////////////////////////////////////////
// GPAC Database is Copyright 2002 Colin Todd       //
// Written by Colin Todd - All rights reserved.     //
//                                                  //
// colintodd@myfastmail.com                         //
//////////////////////////////////////////////////////

//check user is logged in
include_once('_includes/master_include.php');

$root = './';
include($root . 'include/config.php');
include($root.'include/functions.php');



echo"<title>$SoftwareShortName : $SoftwareLongName v$SoftwareVersion</title>"; 

?>
<link rel="stylesheet" href="include/style.css" type="text/css">
<script language="JavaScript" type="text/javascript" src="include/scripts.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">
<?php
include($root . 'include/dbconnect.php');

$fixSQL = html_entity_decode(@$_GET['fixSQL']);
$fixSQL = urldecode($fixSQL);
?>
<center><table cellpadding="5">
<tr>
<td class="style1">
<table class="content1">
<tr>
<td class="content1">
<font size="+2"><b><center>&nbsp;Updating&nbsp;Record&nbsp;</center></b></font><p>
<p>
<center>
<?php
//echo "<pre>$fixSQL</pre><p>";
$result = mysql_query($fixSQL);
echo "<p><b>&nbsp;";
if($result) {
	echo mysql_affected_rows()."&nbsp;record&nbsp;sucessfully&nbsp;updated&nbsp;!<p>";
}else {
	echo "Error&nbsp;updating&nbsp;record&nbsp;!<p>";
}
echo "</b>";
?> 
</center>
</td></tr></table>
</td></tr></table></center>